package com.xxg.renrenuser.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 绑定银行卡参数
 *
 * @author xxg
 * @date 2020/11/6
 */
@Data
@ApiModel(value = "BankCardQuery", description = "绑定银行卡参数")
public class BankCardQuery {
    @NotNull(message = "name不能为null")
    @Size(max = 50, message = "name字段长度不能大于50")
    @ApiModelProperty(value = "姓名")
    private String name;
    @NotNull(message = "cardNo不能为null")
    @Size(max = 30, message = "cardNo字段长度不能大于30")
    @ApiModelProperty(value = "银行卡号")
    private String cardNo;
    @NotNull(message = "idNo不能为null")
    @Size(min = 18, max = 18, message = "idNo字段长度必须为18位")
    @ApiModelProperty(value = "身份证号")
    private String idNo;
}
